import request from '@/utils/request'
const BASE_URL = '/inventoryOrder'
// 分页查询
export function getInventoryOrderPageList(data) {
  return request({
    url: BASE_URL + '/getPageList',
    method: 'post',
    data
  })
}
// 新增
export function addInventoryOrder(data) {
  return request({
    url: BASE_URL + '/add',
    method: 'post',
    data
  })
}
// 查询
export function querySKUList(data) {
  return request({
    url: BASE_URL + '/querySKUList',
    method: 'post',
    data
  })
}

// 详情
export function getInventoryOrderDetail(data) {
  return request({
    url: BASE_URL + '/get',
    method: 'post',
    data
  })
}
// 详情
export function confirmInventoryOrder(data) {
  return request({
    url: BASE_URL + '/confirm',
    method: 'post',
    data
  })
}
// 删除
export function deleteInventoryOrder(data) {
  return request({
    url: BASE_URL + '/delete',
    method: 'post',
    data
  })
}

export function editInventoryDetail(data) {
  return request({
    url: BASE_URL + '/edit',
    method: 'post',
    data
  })
}
export function getUserName() {
  return request({
    url: BASE_URL + '/selectUserName',
    method: 'get'
  })
}
